package cn.gok.service;

import cn.gok.entity.Course;
import cn.gok.entity.Student;
import cn.gok.util.R;
import org.apache.ibatis.annotations.Param;

public interface NewTeacherService {
    //登录
    R login(@Param("tea_id") String teaId, @Param("password") String password);

    //查询之前的密码
    R checkPassword( String password, String teaId);

    //修改密码
    R changePassword( String password, String teaId);

    //添加课程
    R insertCourse(String couName,String startTime,String place,String max
            ,String teaName,String teaId);

    //查询课程
    R selectCourse(String couName, String place, String state,String teaId,int currentPage, int pageSize);

    //删除课程
    R deleteCourse(String couId,String teaId);

    //查询学生
    R selectStudent(String couId,int currentPage, int pageSize);

    //课程评分
    R updateScores(String couId,String stu_id,String scores);
}
